package com.whut.mapper;

import com.whut.model.Userinfo;

import javax.jws.soap.SOAPBinding;
import java.util.List;

public interface UserinfoMapper {
    int deleteByPrimaryKey(Integer userId);

    int insert(Userinfo record);

    int insertSelective(Userinfo record);

    Userinfo selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(Userinfo record);

    int updateByPrimaryKey(Userinfo record);

    Userinfo selectByUserPhone(String userPhone);

    int resetUserPassword(Userinfo user);
    //多参数查询
    Userinfo selectMultiParam(int id,String sex);

    List<Userinfo> getAllUserInfo();

    int updatePasswordByPrimaryKey(Integer userId,String newPassword);

    int updateUserinfo(Userinfo record);

    List<Userinfo> getUserInfoByUserName(String userName);

    //multi insert
    void multi_insert(List<Userinfo> list);

    List<Userinfo> selectOtherCandidate(int groupId);

    List<Userinfo> getUserByVagueName(String userName);

    int updatePermissinById(Integer userId,String permission);

    List<Userinfo> selectPersonalPermission(int userId);

    int updatePermissionByPosition(String position,String permission,String newPosition);

    String getPermissionByUserId(String userId);

    String getPosition(String userId);
}